package jwdt.xadmin.bbs.bean;

import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;

@Table(name="bbs_user", keys={"userid"}, comment="")
public class TBuser implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="userid", comment="")
	private Integer userid;
	
	@Column(value="username", comment="")
	private String username;
	
	@Column(value="useremail", comment="")
	private String useremail;
	
	@Column(value="article", comment="")
	private Integer article;
	
	@Column(value="userpassword", comment="")
	private String userpassword;
	
	@Column(value="sign", comment="")
	private String sign;
	
	@Column(value="sex", comment="")
	private String sex;
	
	@Column(value="homepage", comment="")
	private String homepage;
	
	@Column(value="adddate", comment="")
	private String adddate;
	
	@Column(value="logins", comment="")
	private Integer logins;
	
	@Column(value="face", comment="")
	private String face;
	
	@Column(value="width", comment="")
	private Integer width;
	
	@Column(value="height", comment="")
	private Integer height;
	
	@Column(value="oicq", comment="")
	private String oicq;
	
	@Column(value="lastlogin", comment="")
	private String lastlogin;
	
	@Column(value="bbstype", comment="")
	private Integer bbstype = 0;
	
	@Column(value="lockuser", comment="")
	private Integer lockuser;
	
	@Column(value="userclass", comment="")
	private Integer userclass = 0;
	
	@Column(value="usergroup", comment="")
	private Integer usergroup;
	
	@Column(value="userwealth", comment="")
	private Integer userwealth;
	
	@Column(value="userep", comment="")
	private Integer userep;
	
	@Column(value="usercp", comment="")
	private Integer usercp;
	
	@Column(value="title", comment="")
	private String title;
	
	@Column(value="showre", comment="")
	private Integer showre;
	
	@Column(value="reann", comment="")
	private String reann;
	
	@Column(value="picsign", comment="")
	private String picsign;
	
	@Column(value="picsignurl", comment="")
	private String picsignurl;

	@Column(value="birthday", comment="")
	private String birthday;
	
	
	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUseremail() {
		return useremail;
	}

	public void setUseremail(String useremail) {
		this.useremail = useremail;
	}

	public Integer getArticle() {
		return article;
	}

	public void setArticle(Integer article) {
		this.article = article;
	}

	public String getUserpassword() {
		return userpassword;
	}

	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getHomepage() {
		return homepage;
	}

	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}

	public String getAdddate() {
		return adddate;
	}
	
	public String getAdddateen() {
		String date=adddate.substring(0,10);
		
		return date;
	}

	public void setAdddate(String adddate) {
		this.adddate = adddate;
	}

	public Integer getLogins() {
		return logins;
	}

	public void setLogins(Integer logins) {
		this.logins = logins;
	}

	public String getFace() {
		return face;
	}

	public void setFace(String face) {
		this.face = face;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public String getOicq() {
		return oicq;
	}

	public void setOicq(String oicq) {
		this.oicq = oicq;
	}

	public String getLastlogin() {
		return lastlogin;
	}

	public void setLastlogin(String lastlogin) {
		this.lastlogin = lastlogin;
	}

	public Integer getBbstype() {
		return bbstype;
	}

	public void setBbstype(Integer bbstype) {
		this.bbstype = bbstype;
	}

	public Integer getLockuser() {
		return lockuser;
	}

	public void setLockuser(Integer lockuser) {
		this.lockuser = lockuser;
	}

	public Integer getUserclass() {
		return userclass;
	}

	public void setUserclass(Integer userclass) {
		this.userclass = userclass;
	}

	public Integer getUsergroup() {
		return usergroup;
	}

	public void setUsergroup(Integer usergroup) {
		this.usergroup = usergroup;
	}

	public Integer getUserwealth() {
		return userwealth;
	}

	public void setUserwealth(Integer userwealth) {
		this.userwealth = userwealth;
	}

	public Integer getUserep() {
		return userep;
	}

	public void setUserep(Integer userep) {
		this.userep = userep;
	}

	public Integer getUsercp() {
		return usercp;
	}

	public void setUsercp(Integer usercp) {
		this.usercp = usercp;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getShowre() {
		return showre;
	}

	public void setShowre(Integer showre) {
		this.showre = showre;
	}

	public String getReann() {
		return reann;
	}

	public void setReann(String reann) {
		this.reann = reann;
	}

	public String getPicsign() {
		return picsign;
	}

	public void setPicsign(String picsign) {
		this.picsign = picsign;
	}

	public String getPicsignurl() {
		return picsignurl;
	}

	public void setPicsignurl(String picsignurl) {
		this.picsignurl = picsignurl;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getUserClass() {
		String user_level = "";
		switch (userclass) {
		case 0:
			user_level = "锁定用户";
			break;
		case 1:
			user_level = "新手上路";
			break;
		case 2:
			user_level = "论坛游民";
			break;
		case 3:
			user_level = "论坛游侠";
			break;
		case 4:
			user_level = "业余侠客";
			break;
		case 5:
			user_level = "职业侠客";
			break;
		case 6:
			user_level = "侠之大者";
			break;
		case 7:
			user_level = "黑侠";
			break;
		case 8:
			user_level = "蝙蝠侠";
			break;
		case 9:
			user_level = "蜘蛛侠";
			break;
		case 10:
			user_level = "青蜂侠";
			break;
		case 11:
			user_level = "小飞侠";
			break;
		case 12:
			user_level = "火箭侠";
			break;
		case 13:
			user_level = "蒙面侠";
			break;
		case 14:
			user_level = "城市猎人";
			break;
		case 15:
			user_level = "罗宾汉";
			break;
		case 16:
			user_level = "阿诺";
			break;
		case 17:
			user_level = "侠圣";
			break;
		case 18:
			user_level = "贵宾";
			break;
		case 19:
			user_level = "版主";
			break;
		case 20:
			user_level = "总版主";
			break;
		default:
			user_level = "新手上路";
			break;
		}
		return user_level;
	}

	
	
}
